Add debug log item for r42040
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 13 Oct 2008 19:13:54 +0000 (19:13 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 13 Oct 2008 19:13:54 +0000 (19:13 +0000)
includes/User.php

index 5a6f5e7..6436972 100644 (file)
@@ -805,6 +805,8 @@ class User {
                        $sId = intval( $_COOKIE["{$wgCookiePrefix}UserID"] );
                        if( isset( $_SESSION['wsUserID'] ) && $sId != $_SESSION['wsUserID'] ) {
                                $this->loadDefaults(); // Possible collision!
+                               wfDebugLog( 'loginSessions', "Session user ID ({$_SESSION['wsUserID']}) and 
+                                       cookie user ID ($sId) don't match!" );
                                return false;
                        }
                        $_SESSION['wsUserID'] = $sId;